<nav class="navbar navbar-inverse">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">LOGO</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="active"><a href="{$Think.APP_URL}index.php">首页</a></li>
        <li><a href="{:url('info/list',['m'=>'song'])}">在线曲目</a></li> 
      </ul>
      <form class="navbar-form navbar-left nav-search">
         
          <input type="text" class="form-control" placeholder="输入曲名,作者,分类关键字查询" style="width: 300px;">

          <a href="javascript:;"><i class="iconfont icon-sousuo"></i></a>
         
      </form>
      <ul class="nav navbar-nav navbar-right nav-user">
      	{switch name=":getCookieUserid()"}
      	    {case value=""}
      	    	<li><a href="{:url('user/login')}">登录</a></li> 
        		<li><a href="{:url('user/reg')}">注册</a></li> 
      	    {/case} 
      	    {default /}
	      	    <li class="dropdown">
		          <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" ><span class="iconfont icon-wode" style="margin-right: 5px;"></span>{:getCookieUsername()}<i class="icon icon-angle-down" style="margin-left: 5px;"></i></a>
		          <ul class="dropdown-menu">
		          	<li><a href="{:url('user/')}">用户中心</a></li>
		          	<li><a href="{:url('user/logout')}" onclick="return confirm('确定退出吗?');">退出</a></li>
		          </ul>
		        </li>
      	{/switch} 
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>